import loader from './Loader';


// const Home = loader('Home');
const Test = loader('Test');
// 资质认证
const Identify = loader('Identify');
// 活动列表
const ActivityList = loader('ActivityList');
// 活动统计
const ActivityChart = loader('ActivityChart');
// 名单列表
const NameList = loader('NameList');
// 修改密码
const ModifyPassword = loader('ModifyPassword');


const routes = [{
    key: 'activity',
    name: '活动管理',
    icon: 'home',
    children: [
      {
        path: '/home/activityList',
        component: ActivityList,
        icon: 'table',
        name: "活动列表"
      },
      {
        path: '/home/activityChart',
        component: ActivityChart,
        icon: 'profile',
        name: '活动统计'
      },
    ]
  },
  {
    key: 'names',
    name: '名单管理',
    icon: 'schedule',
    children: [
      {
        path: '/home/namesList',
        name: '名单列表',
        icon: 'home',
        component: NameList,
      }
    ]
  },
  {
    key: 'distributor',
    name: '经销商管理',
    icon: 'home',
    children: [
      {
        path: '/home/distributorList',
        name: '经销商列表',
        icon: 'home',
        component: Test,
      }
    ]
  },
  {
    key: 'staff',
    name: '员工管理',
    icon: 'idcard',
    children: [
      {
        path: '/home/staffList',
        name: '员工列表',
        icon: 'home',
        component: Test,
      }
    ]
  },
  {
    key: 'finance',
    name: '财务管理',
    icon: 'home',
    children: [
      {
        path: '/home/financeList',
        name: '财务列表',
        icon: 'home',
        component: Test,
      }
    ]
  },
  {
    path: '/home/identify',
    component: Identify,
    name: '资料认证',
    isNotMenu: true
  },
  {
    path: '/home/modifyPassword',
    component: ModifyPassword,
    name: '修改密码',
    isNotMenu: true
  },
];

export default routes;
